﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using RuleCode.Table;

namespace map.member
{
    public partial class designshop_intro : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                dealrequest();
                cbuser u;
                string id = AliApi.appUserId;
                if (Request.Params["userid"] != null)
                {
                    u = cbuser.Find(" cbuserid = '" + Request.Params["userid"].ToString() + "' ");
                    if (u.Count > 0)
                    {
                        id = u.RECID.ToString();
                    }
                    else
                    {
                        id = Request.Params["userid"].ToString();
                    }
                }
                if (id == "")
                {
                    //return ""; //为了方便测试,暂时注销
                }
                //cbshoppageelement spe = cbshoppageelement.findorcreatesystem(id,
                //"网站导航栏");
                //Literal1.Text = spe.gethtml0(0);
                u = cbuser.Find(" cbuserid = '" + id + "' ");

                Label_nick.Text = u.cbusernickname.ToString();
                Label_area.Text = u.省编码.ToString();

            }

        }
        private void dealrequest()
        {
            cbuser.dealcookie();
            if (AliApi.appUserId == "")
            {
                Response.Redirect(ResolveUrl("~/member/login.aspx") + "?redirecturl=" + this.Request.Url);
            }
        }
     

    }
}
